//app.js
let util = require('./utils/util');
App({
  util:util,
  onLaunch: function() {
   

 
    // 获取系统状态栏信息
    wx.getSystemInfo({
      success: e => {
        this.globalData.StatusBar = e.statusBarHeight;
        let capsule = wx.getMenuButtonBoundingClientRect();
        if (capsule) {
         	this.globalData.Custom = capsule;
        	this.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
        } else {
        	this.globalData.CustomBar = e.statusBarHeight + 50;
        }
      }
    })
  },
  globalData: {
    userInfo: null,
  }, 
  rootUrl:"http://localhost:8080",
  siteroot: "http://localhost:8080/applet/",
  //imageUrl:"http://localhost:1024/dev-api"
  imageUrl:"http://localhost:8080"
})